package com.tanhua.admin.controller;

import com.tanhua.admin.service.DashboardService;
import com.tanhua.model.vo.DashboardSummaryVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author げっしょく
 * @date 2021/11/9
 */
@RestController
@RequestMapping("/dashboard")
public class DashboardController {

    @Autowired
    private DashboardService dashboardService;


    @GetMapping("/users")
    public ResponseEntity users(String sd, String ed, String type) {

        return ResponseEntity.ok(null);
    }

    @GetMapping("/summary")
    public ResponseEntity summary() {
        DashboardSummaryVo vo = dashboardService.summary();
        return ResponseEntity.ok(vo);
    }
}
